import { z } from 'zod';

export const CreateGroupDTO = z.object({
  name: z.string().min(1).max(50),
  avatar: z.string().url().optional(),
  member_ids: z.array(z.number()).optional() // 👈 支持拉人进群
});

export const GroupMembersDTO = z.object({
  user_ids: z.array(z.number().int()).min(1)
});


export type GrouoMembersInput = z.infer<typeof GroupMembersDTO>;
export type CreateGroupInput = z.infer<typeof CreateGroupDTO>;
